package com.study.design.model.behaviorPattern.observer;

/**
* @Name: ObserverA
* @Description: 观察者A
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午10:09:28 
* @Version: V1.0
 */
public class ObserverA implements Observer {
	
	private int myState ;

	@Override
	public void update(Subject subject) {
		myState = ((ConcreteSubject) subject).getState() ;
	}

	public int getMyState() {
		return myState;
	}

	public void setMyState(int myState) {
		this.myState = myState;
	}
	

}
